{% extends 'base.html' %}
{% load thumbnail %}
{% block content %}
    <div class="row">确认画面：{{ wheel_type }}</div>
    {% if wheel %}
        <div class="row">
        <div class="col-md-6">
            {% thumbnail wheel.image_top "300x300" as im %}
                <img src="{{ im.url }}">
            {% endthumbnail %}
        </div>
        <div class="col-md-4">
            <table class="table">
                <tr>
                    <td><span class="label label-info">型号</span></td>
                    <td>{{ wheel.marker }}</td>
                </tr>
                <tr>
                    <td><span class="label label-info">气门孔</span></td>
                    <td>{{ wheel.valve_hole }}</td>
                </tr>
                <tr>
                    <td><span class="label label-info">工艺</span></td>
                    <td>{{ wheel.technique }}</td>
                <tr>
                    <td><span class="label label-info">颜色</span></td>
                    <td>{{ wheel.color }}</td>
                </tr>
                <tr>
                    <td><span class="label label-info">客户</span></td>
                    <td>{{ wheel.customer }}</td>
                </tr>
            </table>
        </div>
    {% endif %}
</div>
    <div class="row">
        <div class="col-md-6">
            <table class="table">
                <tr>
                    <td>
                        <button id="btn_ng" class="button btn-primary"> NG</button>
                    </td>
                    <td>
                        <button id="btn_print_top" class="button btn-primary"> 打印上端</button>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <button id="btn_print_bottom" class="button btn-primary"> 打印下端</button>
                    </td>
                </tr>
            </table>
        </div>
    </div>
{% endblock %}
{% block script %}
    <script>
        $(document).ready(function () {
            $("#btn_ng").click(function (evt) {
                evt.preventDefault();
                history.back(-1);
            });

        });
    </script>

{% endblock %}